package com.djw.mapper;

import com.djw.model.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {
    int deleteByPrimaryKey(String id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    @Select("SELECT * \n" +
            "\tFROM user\n" +
            "\tWHERE name = #{name}")
    User getUserByName(@Param("name")String name);
}